package com.company.cyxmall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.company.common.utils.PageUtils;
import com.company.cyxmall.product.entity.AttrGroupEntity;
import com.company.cyxmall.product.vo.AttrGroupRelationVo;
import com.company.cyxmall.product.vo.AttrGroupWithAttrsVo;

import java.util.List;
import java.util.Map;

/**
 * 属性分组
 *
 * @author cyx
 * @email cyx@gmail.com
 * @date 2020-04-02 20:30:59
 */
public interface AttrGroupService extends IService<AttrGroupEntity> {

    PageUtils queryPage(Map<String, Object> params);

    PageUtils queryPage(Map<String, Object> params, Long catelogId);

    /**
     *  删除分组与基本类型的级联关系
     * */
    void deleteRelation(AttrGroupRelationVo[] attrGroupRelationVo);

    /**
     *  获取分类下所有分组及分组下的属性
     * */
    List<AttrGroupWithAttrsVo> getAttrGroupWithAttrs(Long catelogId);
}

